package com.example.landmanagement.util;

/**
 * className CodeEnum
 *  自定义状态码
 * @author Java DaKun
 * @date 2021/7/14
 * @version:1.0
 * @since:jdk:1.8
 */
public enum CodeEnum {

    SUCCESS(1000,"操作成功"),
    LOGIN_SUC(1001,"登陆成功"),


    LOGIN_ERR(5001,"登录失败"),
    NO_LOGIN(5002,"没有登录"),
    ERROR(5000,"操作失败");

    private Integer code;
    private String msg;

    CodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
